import logging as log


def easy_info(msg: str, name: str = ""):
    log.basicConfig(level=log.INFO, format="%(message)s")
    log_info = log.getLogger(name)
    log_info.info(msg)


def info_(msg: str, name: str = " "):
    log.basicConfig(level=log.INFO, format="%(name)s >> %(asctime)s : %(message)s",
                    datefmt="%Y/%m/%d %H:%M:%S")
    log_info = log.getLogger(name)
    log_info.info(msg)

# log.basicConfig(level=log.INFO,
#                 format='%(name)s >> %(asctime)s : %(message)s',
#                 datefmt='%Y/%m/%d %H:%M:%S')
# loger = log.getLogger("")
# loger.warning("warning")
# loger.error("error")
# cs = "格式化测试"
# loger.info(f"{cs}")
